package com.example.movie.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (TUser)实体类
 *
 * @author makejava
 * @since 2021-04-02 16:51:14
 */
public class TUser implements Serializable {
    private static final long serialVersionUID = -68560705191407270L;

    private String userId;
    /**
     * 密码
     */
    private String userPassword;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 身份
     */
    private String identity;
    /**
     * 地址
     */
    private String address;
    /**
     * 性别
     */
    private Integer sex;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 信息完整标志
     */
    private Integer completeFlag;
    /**
     * 标识
     */
    private Integer status;
    /**
     * 注册时间
     */
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date createTime;
    /**
     * 是否注册
     */
    private Integer isregister;
    /**
     * 逻辑删除
     */
    private Integer deleteFlag;

    private String online;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date onlineTime;

    public Date getOnlineTime() {
        return onlineTime;
    }

    public void setOnlineTime(Date onlineTime) {
        this.onlineTime = onlineTime;
    }

    public String getOnline() {
        return online;
    }

    public void setOnline(String online) {
        this.online = online;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getCompleteFlag() {
        return completeFlag;
    }

    public void setCompleteFlag(Integer completeFlag) {
        this.completeFlag = completeFlag;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getIsregister() {
        return isregister;
    }

    public void setIsregister(Integer isregister) {
        this.isregister = isregister;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public String toString() {
        return "TUser {" +
                "userId : " + userId + ", " +
                "userPassword : " + userPassword + ", " +
                "phone : " + phone + ", " +
                "nickName : " + nickName + ", " +
                "avatar : " + avatar + ", " +
                "identity : " + identity + ", " +
                "address : " + address + ", " +
                "sex : " + sex + ", " +
                "email : " + email + ", " +
                "completeFlag : " + completeFlag + ", " +
                "status : " + status + ", " +
                "createTime : " + createTime + ", " +
                "isregister : " + isregister + ", " +
                "deleteFlag : " + deleteFlag + ", " +
                '}';
    }
}
